package com.crm.dao.mapper.knowledgeitem;

import com.crm.model.entity.knowledgeitem.KnowledgeItem;
import com.crm.model.entity.knowledgeitem.KnowledgeItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface KnowledgeItemMapper {
    long countByExample(KnowledgeItemExample example);

    int deleteByExample(KnowledgeItemExample example);

    int deleteByPrimaryKey(String knowledgeItemId);

    int insert(KnowledgeItem record);

    int insertSelective(KnowledgeItem record);

    List<KnowledgeItem> selectByExample(KnowledgeItemExample example);

    KnowledgeItem selectByPrimaryKey(String knowledgeItemId);

    int updateByExampleSelective(@Param("record") KnowledgeItem record, @Param("example") KnowledgeItemExample example);

    int updateByExample(@Param("record") KnowledgeItem record, @Param("example") KnowledgeItemExample example);

    int updateByPrimaryKeySelective(KnowledgeItem record);

    int updateByPrimaryKey(KnowledgeItem record);
}